#ifndef __RocketManager_H__
#define __RocketManager_H__

#include "cocos2d.h"
#include "entity/Entity/Rocket/Rocket.h"

USING_NS_CC;

class RocketManager : public CCLayer{
public:
	RocketManager();
	~RocketManager();

	CREATE_FUNC(RocketManager);
	virtual bool init();

	virtual bool ccTouchBegan(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchMoved(CCTouch *pTouch, CCEvent *pEvent);
    virtual void ccTouchEnded(CCTouch *pTouch, CCEvent *pEvent);
	virtual void registerWithTouchDispatcher();

public:
	Rocket* getRocket();

	Box2dMoveController* getBox2dMoveController();

private:
	Rocket* m_rocket;
	Box2dMoveController* m_moveController;

	CCPoint prePos;
	CCPoint curPos;
};
#endif // !__RocketManager_H__
